﻿using UnityEngine;
using System.Collections;

public class BackgroundLoop : MonoBehaviour {

	// Use this for initialization
	void Start () {
	
	}
	
	// Update is called once per frame
	void Update () {
		Vector2 textureOffset = this.renderer.material.mainTextureOffset;
		textureOffset.x += 0.01f;
		this.renderer.material.mainTextureOffset = textureOffset;
	
	}
}
